﻿//Create By Leven
//Copyright 2008 LevenStudio
//http://leven.com.cn/
//For LevenBlog2.0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace LevenBlog.Core.Entities
{
    /// <summary>
    /// 表lb_friendlink
    /// </summary>
    [Serializable]
    [DataContract(Name = "friendlink")]
    [Table("lb_friendlink",Info="")]
    public class lb_friendlink : BaseEntity
    {
        [DataMember]
        [Column("id", DataType.Int32, Length = 4, CanNull = false, AutoIncrement = true, PrimaryKey = true)]
        public int id { get; set; }

        [DataMember]
        [Column("name", DataType.VarChar, Length = 255)]
        public string name { get; set; }

        [DataMember]
        [Column("intro", DataType.VarChar, Length = 1000)]
        public string intro { get; set; }

        [DataMember]
        [Column("url", DataType.VarChar, Length = 255)]
        public string url { get; set; }

        [DataMember]
        [Column("order", DataType.Int32, Length = 4)]
        public int order { get; set; }

        [DataMember]
        [Column("image", DataType.VarChar, Length = 255)]
        public string image { get; set; }

        [DataMember]
        [Column("isimg", DataType.Bit)]
        public bool isimg { get; set; }

        [DataMember]
        [Column("isshow", DataType.Bit)]
        public bool isshow { get; set; }

        [DataMember]
        [Column("isindex", DataType.Bit)]
        public bool isindex { get; set; }

        public lb_friendlink()
        {
            id = -1;
            name = string.Empty;
            intro = string.Empty;
            url = string.Empty;
            order = 1000;
            image = string.Empty;
            isimg = false;
            isshow = false;
            isindex = false;
        }
    }
}
